<?php
include "../../templates/db/db.php";

$select_notes = mysql_query('SELECT * FROM notes WHERE username = "'.$_SESSION['username'].'" ORDER BY date DESC');
echo "<ul type='square'>";
while($row_notes = mysql_fetch_assoc($select_notes)){
	echo '<li><i>'.date('Y-m-d / G:i:s', $row_notes['date']).'</i> | '.ucfirst($row_notes['text'])."<hr width='98%' />".'</li>'; 
}
echo "</ul>";